import request from '@/utils/request'

// 查询银行开户列表
export function listOepn(query) {
  return request({
    url: '/system/oepn/list',
    method: 'get',
    params: query
  })
}

// 查询银行开户详细
export function getOepn(bankOpenInfoId) {
  return request({
    url: '/system/oepn/' + bankOpenInfoId,
    method: 'get'
  })
}

// 新增银行开户
export function addOepn(data) {
  return request({
    url: '/system/oepn',
    method: 'post',
    data: data
  })
}

// 修改银行开户
export function updateOepn(data) {
  return request({
    url: '/system/oepn',
    method: 'put',
    data: data
  })
}

// 删除银行开户
export function delOepn(bankOpenInfoId) {
  return request({
    url: '/system/oepn/' + bankOpenInfoId,
    method: 'delete'
  })
}
